<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>多个修饰符连用</title>
</head>
<body>
<div id="app">
    <div v-on:click="divClicked">
        aadfasfsa
        <!--<a href="https://www.baidu.com" data-on:click.prevent.stop="hrefClicked">有问题，百度一下</a>-->
        <a href="https://www.baidu.com" v-on:click.stop.prevent="hrefClicked">有问题，百度一下</a>
    </div>
</div>

<script type="module">
    import {createApp} from "../../../js/vue.esm-browser.js";

    let app = createApp(
        {
            setup() {
                function hrefClicked() {
                    console.log("点击了 超链接");
                }

                function divClicked() {
                    console.log("点击了 div");
                }

                return {
                    hrefClicked, divClicked
                }
            }
        }
    );

    app.mount("#app")
</script>

</body>
</html>